<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var obj1 = new Object();
			obj1.name = "zhangsan";
			obj1.age = 20;

			var obj2 = new Object();
			obj2.name = "华为";
			obj2.price = 6999;

			// console.log(obj2.name);
			// console.log(obj2['name']);

			// delete

			//遍历
			for (var var1 in obj2) {
				console.log(var1);
				console.log(obj2[var1])
			}
		</script>
	</head>
	<body>
	</body>
</html>
